using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Xml;
using System.IO;

using OrbitOne.Feed.Domain;

namespace OrbitOne.Feed.Handlers {
    /// <summary>
    /// Handler for .rss extension
    /// </summary>
    internal class RSSHandler : AbstractHandler {
        #region Methods :
        /// <summary>
        /// Factory method for creating Output writers either RSS,ATOM or podcast.
        /// </summary>
        /// <param name="webFeed">The web feed.</param>
        /// <returns></returns>
        protected override AbstractWriter CreateWriter(WebFeed webFeed) {
            if (webFeed is PodCastWebFeed) {
                return new PodCastWriter(webFeed as PodCastWebFeed);
            } else {
                return new RSSWriter(webFeed);
            }
        }
        #endregion Methods 

    }
}
